<template>
  <div class="container">
    <vditor-edit :content="artInfo.content" ref="editorRef"></vditor-edit>
    <button @click="saveInfo">提交修改</button>
  </div>
</template>
<script>
import VditorEdit from './VditorEdit.vue'
export default {
  components: {
    VditorEdit
  },
  data () {
    return {
      artInfo: {
        content: 'jkldjsalfdlajfdlajfd;lkjfdkl;a;lkfjdla'
      },
      editorRef: {}
    }
  },
  methods: {
    saveInfo () {
      const edit = this.$refs.editorRef
      const vc = edit.getEditValue()
      console.log(vc)
    }
  }
}
</script>
<style scoped>
</style>
